name = '     衡孟浩  '


print(name)

# 去除左边空格
print("l:" + name.lstrip())

# 去除右边空格
print("r:" + name.rstrip())

# 去除两边空格
print("lr:" + name.strip())